package com.cll.prototype.config;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.config.server.EnableConfigServer;

/**
 * 描述信息:
 * 配置中心+时间总线。用来进行项目配置的管理，并通过bus进行刷新
 * @author CLL
 * @version 1.0
 * @date 2020/11/9 16:45
 */
@SpringBootApplication
@EnableDiscoveryClient
@EnableConfigServer
public class ConfigBusApplication8780 {

    private static final Logger logger = LoggerFactory.getLogger(ConfigBusApplication8780.class);

    public static void main(String[] args) {
        logger.info("===>>> config bus module 8780 is starting...");
        SpringApplication.run(ConfigBusApplication8780.class, args);
        logger.info("===>>> config bus module 8780 is started success!");
    }
}